export const http = ({
  url,method,data,success,fail,complete,headers,
})=>{
  wx.showLoading({
    title: '请求中...',
  })

  // axios 
  wx.request({
    url,
    data,
    method,
    headers,
    success:res=>{
      wx.hideLoading();
      console.log(res);
      success(res);
    }
  })
}